package cc.linker.steplink.crm.merchant.service.acs;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.*;

public interface PageService {

    Boolean addModule(Map<String, Object> param);

    Boolean updateModule(Map<String, Object> param);

    // 插入自定义的商品组件
    void addGoodsList(Map<String, Object> param);

    void addImagemodule(Map<String, Object> param);

    String getCtimeByOrgId(String orgId);

    Map<String, Object> getSaleInfoByAdminId(String adminId);

    List<Map<String, Object>> moduleList(String customerId);

    Map<String, Object> getGoodsModule(Map<String, Object> param);

    void delModule(String id, String customerId);

    Map<String, Object> getModule(String id);

    List<Map<String, Object>> getModuleImage(String id);

    void sortModule(List<Map<String, Object>> param, String customerId);

    Map<String, Object> getEnrollModule(String id);

    List<Map<String, Object>> getEnrollImage(String id);

    List<Map<String, Object>> goodsList(Map<String, Object> param);

    List<Map<String, Object>> moduleGoodsList(Map<String, Object> param);

    /****************************新版页面装修功能**v1.12.6版本***************************************************/

    void deletePage(Integer id, String customerId, String orgId);

    List<Map<String, Object>> pageList(Map<String, Object> param);

    void savePage(Map<String, Object> param) throws IOException;

    Map<String, Object> getPage(Integer id, String customerId);

    void saveFooter(Map<String, Object> param);

    Map<String, Object> getFooter(String customerId);

    List<Map<String, Object>> getPageList(String customerId, Integer pageKind);

    /**
     * 初始化 大麦或者联盟商家登录时初始化
     *
     * @param customerId
     * @param orgId
     */
    void setInitializePage(String customerId, String orgId);

    void setIndexPage(Integer id, String customerId);

    Map<String, Object> saveEditPage(Map<String, Object> param, HttpServletRequest request);

    //获取优惠券
    List<Map<String, Object>> getCouponListByCouponIds(List<String> couponIds, HttpServletRequest request);

    int getGoodsGroupNum(Integer goodsGroupId);
}
